Class Rubyipmi::Ipmitool::Lan
In: lib/rubyipmi/ipmitool/commands/lan.rb
Parent: Rubyipmi::Ipmitool::BaseCommand

Methods

channel=   dhcp?   gateway   gateway=   info   ip   ip=   mac   netmask   netmask=   new   refresh   snmp   static?   vlanid   vlanid=  

Constants

MAX_RETRY = 1

Attributes

channel  [RW] 
info  [RW] 

Public Class methods

Public Instance methods

def snmp=(community)

  @options["cmdargs"] = "lan set #{channel} snmp #{community}"
  value = runcmd
  @options.delete_notify("cmdargs")
  return value

end

sets the info var to be empty causing the variable to repopulate upon the next call to info

[Validate]