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

Methods

dhcp?   gateway   gateway=   info   ip   ip=   mac   netmask   netmask=   new   parse   print   static?  

Attributes

channel  [RW] 
info  [RW] 

Public Class methods

Public Instance methods

def snmp

  if @info.length < 1
    parse(print)
  end
  # Some systems do not report the snmp string
  @info["snmp community string"]

end

def snmp=(community)

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

end

def vlanid=(vlan)

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

end

[Validate]