Method: Cisco::Node#os
- Defined in:
- lib/cisco_node_utils/node.rb
#os ⇒ String
281 282 283 284 285 |
# File 'lib/cisco_node_utils/node.rb', line 281 def os o = config_get('show_version', 'header') fail 'failed to retrieve operating system information' if o.nil? o.split("\n")[0] end |