ShowNetStatus
  • Just looking around
    djrikki
    Posts: 16 from 2012/3/18
    Hi,

    Quick questions, I need to be able to return the Local IP Address of the machine, under AmigaOS I call ShowNetStatus and scrap it from the second line.

    1) Is there an equivalent under MorphOS which comes as standard?
    2) Where is it located? Complete path to executable please.
    3) Please dump default output or provide syntax that dumps out the Local IP Address, the entire dump.
  • »18.03.12 - 16:37
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Amigaharry2
    Posts: 1282 from 2010/1/6
    From: EU-Austria (Wien)
    Mossys:c/ifconfig could be what you need....... (ifconfig -h shows options)
    Peg2, 3xPowerMac G5, 2xPowerbookG4, 2x MacMiniG4, Efika (again), A3000T and life is never boring.....
  • »18.03.12 - 16:44
    Profile
  • Just looking around
    djrikki
    Posts: 16 from 2012/3/18
    I don't have a MorphOS machine to try this so I need a working example with dump of the CLI output.
  • »18.03.12 - 16:50
    Profile Visit Website
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    I don't have a MorphOS machine to try this

    You can get one for $50 ;-). And free version of MorphOS is enough to try all the things you ask in numerous posts.
  • »18.03.12 - 17:35
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Posts: 874 from 2007/4/9
    From: Kingston upon ...
    djrikki,
    Quote:

    I don't have a MorphOS machine to try this so I need a working example with dump of the CLI output.


    I have a spare G4 Powermac (dual 1GHz MDD) lying around unused.

    It doesn't have a license key for MorphOS, so would be limited to the 30-minutes timeout, but you're welcome to borrow it for development if you want, since you're just across the bridge from me.

    I'll even set up a couple of vanilla partitions for you.
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »18.03.12 - 18:15
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Posts: 874 from 2007/4/9
    From: Kingston upon ...
    djrikki,
    Quote:

    1) Is there an equivalent under MorphOS which comes as standard?
    ifconfig

    Quote:

    2) Where is it located? Complete path to executable please.
    sys:morphos/c, but as this is added to path during startup-sequence, you can just call the executable without the path:to/file.

    Quote:

    3) Please dump default output or provide syntax that dumps out the Local IP Address, the entire dump.
    Don't know about default output, but here's the result from my mac-mini running 2.7:

    Quote:

    Ram Disk:> ifconfig
    lo0: flags=c9<UP,LOOPBACK,RUNNING,NOARP> MTU=16436
    inet 127.0.0.1 netmask ff000000
    Hardware type: Loopback

    eth0: flags=4863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,SANA> MTU=1500
    inet 192.168.0.102 netmask ffffff00 broadcast 192.168.0.255
    Hardware type: Ethernet, address: 0:14:51:2d:80:fe

    Use "ifconfig -h" for usage.
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »18.03.12 - 18:26
    Profile Visit Website
  • Just looking around
    djrikki
    Posts: 16 from 2012/3/18
    Hi,

    Might have to take you up on that one, no license key is fine.

    So when is best for you? Afternoons? Or evenings only. PM your details and we'll talk it through in private.
  • »19.03.12 - 22:25
    Profile Visit Website