How do I set the date on an Indigo after replacing battery?
#1
How do I set the date on an Indigo after replacing battery?
I have an Indigo with a dead battery.
I replaced the battery and was able to enter the Command Monitor.
When I type 'date' it says  'Command not found'

How do I set the date from here?

Here is a log of the console:

>> date
date: Command not found.
>> hinv
              Memory size: 16 Mbytes
  Instruction cache size: 32 Kbytes
          Data cache size: 32 Kbytes
            System option: Audio processor, revision 3
                SCSI Disk: dksc(0,1)
                CPU board: IP12 33 MHz, with FPU
>> date
date: Command not found.
>> help
Commands:
autoboot:      auto
boot:          boot [-f FILE] [-n] [ARGS]
eaddr:          eaddr
exit:          exit
help:          help or ? [COMMAND]
initialize:    init
inventory:      hinv [-v]
list files:    ls DEVICE
passwd:        passwd
printenv:      printenv [ENV_VAR_LIST]
resetenv:      resetenv
resetpw:        resetpw
setenv:        setenv ENV_VAR STRING
single user:    single
unsetenv:      unsetenv ENV_VAR
version:        version
>> version
PROM Monitor SGI Version 4.0.1 Rev D LG1/GR2,  Mar 24, 1992
MetalLevel
O2

Trade Count: (0)
Posts: 1
Threads: 1
Joined: Oct 2021
Location: TX
Find Reply
10-16-2021, 09:41 PM
#2
RE: How do I set the date on an Indigo after replacing battery?
Hi there,

I'm not familiar with the Indigo specifically, but if you type "printenv" what shows up?

If it shows a variable for the date, you set it via setenv

The PROM isn't UNIX after all, don't expect much from it.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,239
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
10-16-2021, 10:13 PM
#3
RE: How do I set the date on an Indigo after replacing battery?
I didn't think the PROMs could do any date/time functions, because they don't care about time. If you want to solve the chicken/egg problem when installing the OS with an incorrect date, I'd say once you boot to miniroot and get to INST.

Do this:

Inst> admin date mmddhhmmccyy
You can display the date again with this command:
Inst> admin date

Info was gotten from here: http://rsusu1.rnd.runnet.ru/sgi/install/...stallation

date command from admin is supposed to be same as man date(1), so I added the century "cc" to the above command as that SHOULD work...

Thanks.
(This post was last modified: 10-16-2021, 10:30 PM by weblacky.)
weblacky
I play an SGI Doctor, on daytime TV.

Trade Count: (10)
Posts: 1,716
Threads: 88
Joined: Jan 2019
Location: Seattle, WA
Find Reply
10-16-2021, 10:27 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)