Method: Cisco::Node#os
- Defined in:
- lib/cisco_node_utils/node.rb
#os ⇒ String
Returns such as “Cisco Nexus Operating System (NX-OS) Software”.
317 318 319 320 321 |
# File 'lib/cisco_node_utils/node.rb', line 317 def os o = config_get('show_version', 'header') fail 'failed to retrieve operating system information' if o.nil? o.split("\n")[0] end |